PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-07-29 10:24:01.421991+00:00 (UTC)
In US/Central Time, this is 2024-07-29 05:24:01.421991-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/cee2635bc6b012f87c2b0d3c0f88add4ac28ce8baac0562d652dfd8c8efddded.png
We are just generating a random time serie here.
../_images/f34464abe4056394f32228f13bb7a52aa333eee885f2dff1618c541e1d649fe2.png
../_images/622d1561d241994ddc93225cbaecefc2ef36b1a2c0c214fbeee5ee8ff0bf5b96.png